define(function () {
	var chart5 = {};
	chart5.queryData = function (Chart) {
		console.log('开始请求数据')
		// 写入数据
		Chart.setOption(this.option);
	}

	var xAxisData = [];
	var data1 = [];
	var data2 = [];
	for (var i = 0; i < 5; i++) {
		xAxisData.push('类目' + i);
		data1.push((Math.sin(i / 5) * (i / 5 - 10) + i / 6) * 5 - 1);
		data2.push((Math.cos(i / 5) * (i / 5 - 10) + i / 6) * 5);
	}

	chart5.option = {
		title: {},
		tooltip: {
			trigger: 'axis',
			axisPointer: {
				type: 'shadow'
			}
		},
		legend: {
			data: ["准备执行", "执行成功", "正在执行"],
			color: "#fff",
			bottom:0,
		},
		grid: {
			left: '3%',
			right: '12%',
			bottom: '8%',
			top: '15%',
			containLabel: true
		},
		xAxis: {
			name:'运行名称',
			type: 'category',
			axisLabel: {
				interval: 0,//横轴信息全部显示  
				rotate: 60,//60度角倾斜显示  
			},
			data: ['实况数据采集', '预报数据采集', '温度格点化处理', '降水格点化处理', '壤情格点化处理', '超过15读的天数', '气温预报12小时', '气温预报24小时', '气温预报48小时', '专业服务产品', '决策服务产品', '调用应用程序', '数据格点化', '推送产品']
			
		},
		yAxis: {
			name:'运行数量',
			type: 'value',
			boundaryGap: [0, 0.01]
		},
		series: [
			{
				name: '准备执行',
				type: 'bar',
				data: [18, 23, 24, 14, 13, 8, 18, 23, 24, 14, 13, 8, 5, 6]
			},
			{
				name: '执行成功',
				type: 'bar',
				data: [18, 23, 24, 14, 13, 8, 18, 23, 24, 14, 13, 8, 5, 6]
			},
			{
				name: '正在执行',
				type: 'bar',
				data: [18, 23, 24, 14, 13, 8,18, 23, 24, 14, 13, 8,5,6]
			},
			
			
		]
	};






	return chart5
});